package com.heima.api.admin;

import com.heima.model.behavior.dtos.IsCollectionDto;
import com.heima.model.behavior.dtos.IsFollowDto;
import com.heima.model.behavior.dtos.IsLikeDto;
import com.heima.model.behavior.dtos.IsUnlikeDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "leadnews-behavior", url = "http://localhost:51801")
public interface IBehaviorClient {

    @PostMapping("/api/v1/likes_behavior/isLike")
    Boolean isLike(@RequestBody IsLikeDto isLikeDto);


    @PostMapping("/api/v1/likes_behavior/isUnlike")
    Boolean isUnlike(@RequestBody IsUnlikeDto isUnlikeDto);

}
